package demo;

import java.time.LocalDateTime;
import java.util.Scanner;

public class Demo08 {
    public static void main(String[] args) {
        Scanner sc =  new Scanner(System.in);
        while (true){
            String info = sc.next();
            System.out.println(info);
            if (info.equals ("n")){
                break;
            }
            else {
                LocalDateTime now = LocalDateTime.now();
                System.out.println(now+ "循环操作中~~~ 按n退出循环");

            }
        }

    }

}
